#ifndef _FRESHPOINT_H_
#define _FRESHPOINT_H_
#include "myobject.h"
#include <list>

using namespace cocos2d;
using namespace std;

namespace fireplane
{
	class FreshPointBase : public Object
	{
	public:

		FreshPointBase();
		FreshPointBase(int id, CCPoint pos);
		~FreshPointBase();

		virtual bool updateState(float dt);

		static void InitFreshPoint(int id, CCPoint pos);
		static void UpdateAllFreshPoint( float dt );

		static list<FreshPointBase*>& getAllFreshPoint(){
			return _all_freshpoint_list;
		}

	protected:

	private:
		int _id ;
		CCPoint _pos;

		static list<FreshPointBase*> _all_freshpoint_list;
	};
}

#endif //_FRESHPOINT_H_